package io.renren.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.api.dao.UserFrequentlyRouteSectionDao;
import io.renren.modules.api.entity.UserFrequentlyRouteSectionEntity;
import io.renren.modules.api.service.UserFrequentlyRouteSectionService;



@Service("userFrequentlyRouteSectionService")
public class UserFrequentlyRouteSectionServiceImpl implements UserFrequentlyRouteSectionService {
	@Autowired
	private UserFrequentlyRouteSectionDao userFrequentlyRouteSectionDao;
	
	@Override
	public UserFrequentlyRouteSectionEntity queryObject(Long id){
		return userFrequentlyRouteSectionDao.queryObject(id);
	}
	
	@Override
	public List<UserFrequentlyRouteSectionEntity> queryList(Map<String, Object> map){
		return userFrequentlyRouteSectionDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userFrequentlyRouteSectionDao.queryTotal(map);
	}
	
	@Override
	public void save(UserFrequentlyRouteSectionEntity userFrequentlyRouteSection){
		userFrequentlyRouteSectionDao.save(userFrequentlyRouteSection);
	}
	
	@Override
	public void update(UserFrequentlyRouteSectionEntity userFrequentlyRouteSection){
		userFrequentlyRouteSectionDao.update(userFrequentlyRouteSection);
	}
	
	@Override
	public void delete(Long id){
		userFrequentlyRouteSectionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		userFrequentlyRouteSectionDao.deleteBatch(ids);
	}

	@Override
	public List<UserFrequentlyRouteSectionEntity> queryListByRouteId(Long routeId) {
		return userFrequentlyRouteSectionDao.queryListByRouteId(routeId);
	}

	@Override
	public List<Map<String, Object>> queryListMapByRouteId(Long routeId) {
		return userFrequentlyRouteSectionDao.queryListMapByRouteId(routeId);
	}


}